import Vue from 'vue'
import Vuex from 'vuex'


import mutations from './mutations'
import actions from './actions'
import getters from './getters'

Vue.use(Vuex)

const state = {
  app_webName: '',
  app_viewHeight: 0,
  app_tabBar: {
    config:{
      bodybgcolor:'#fff',
      firstcolor:'#444',
      secondcolor:'#848484',
      thirdcolor:'#000',
    }
  },
  subcolumn_nav: [],
  product_list: [],
  product_view: {},
  about: {},
  news_list: [],
  news_view: {},
  message_list: [],
  message_form: [],
  banner: [],
  column: {
    active:{},
    product:{},
    news:{},
    about:{}
  },
  sidebar: {},
  feedback:{}
}

export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations,
})
